package com.appkubes.mall.admin.application.customer.collect.entity.vo;

import com.appkubes.base.core.entity.vo.UserKeyVO;
import com.appkubes.mall.admin.application.customer.customer.entity.vo.CustomerKeyVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * @Author: Rongjie
 * @Date: 2020/1/12 10:59
 * @Description:
 */
@Data
@ApiModel("用户收藏信息维护")
public class CustomerCollectUpsertVO extends CustomerKeyVO {

    @ApiModelProperty("收藏KEY, 如果是更新，必填")
    String collectKey;

    @ApiModelProperty("收藏类型(GOODS/USER)")
    @NotEmpty(message = "收藏类型不能为空")
    @Pattern(regexp = "(GOODS|USER)", message = "收藏类型不正确")
    String collectType;

    @ApiModelProperty("收藏KEY")
    @NotEmpty(message = "收藏KEY不能为空")
    String targetKey;

    @ApiModelProperty("弹性域1")
    String flexSegment1;

    @ApiModelProperty("弹性域2")
    String flexSegment2;

    @ApiModelProperty("弹性域3")
    String flexSegment3;

    @ApiModelProperty("弹性域Json")
    String flexJson;

}
